home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / include / incl98.zoo / locale.h < prev    next >
C/C++ Source or Header  |  1993-07-10  |  1KB  |  59 lines

  1. /*
  2.  * locale.h (ansi draft sec 4.4)
  3.  *      not implemented
  4.  */
  5.  
  6. #ifndef _LOCALE_H
  7. #define _LOCALE_H
  8.  
  9. #ifndef _COMPILER_H
  10. #include <compiler.h>
  11. #endif
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17. #define LC_ALL          0x001F
  18. #define LC_COLLATE      0x0001
  19. #define LC_CTYPE        0x0002
  20. #define LC_MONETARY     0x0004
  21. #define LC_NUMERIC      0x0008
  22. #define LC_TIME         0x0010
  23.  
  24. #ifndef NULL
  25. #define NULL        __NULL
  26. #endif
  27.  
  28. struct lconv {
  29.         char    *decimal_point;
  30.         char    *thousands_sep;
  31.         char    grouping;
  32.         char    *int_curr_symbol;
  33.         char    *currency_symbol;
  34.         char    *mon_decimal_point;
  35.         char    *mon_thousands_sep;
  36.         char    mon_grouping;
  37.         char    *positive_sign;
  38.         char    *negative_sign;
  39.         char    int_frac_digits;
  40.         char    frac_digits;
  41.         char    p_cs_precedes;
  42.         char    p_sep_by_space;
  43.         char    n_cs_precedes;
  44.         char    n_sep_by_space;
  45.         char    p_sign_posn;
  46.         char    n_sign_posn;
  47. };
  48.  
  49. __EXTERN char *        setlocale  __PROTO((int category, const char *locale));
  50. /* default is supposed to be setlocale(LC_ALL, "C") */
  51.  
  52. __EXTERN struct lconv *    localeconv __PROTO((void));
  53.  
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57.  
  58. #endif /* _LOCALE_H */
  59.